package com.budwk.app.sqfw.services.impl;

import com.budwk.app.sqfw.constants.SqfwCloudBusinessConstants;
import com.budwk.app.sqfw.models.Sqfw_completeflow;
import com.budwk.app.sqfw.tencent.TCyysb;
import com.budwk.starter.common.result.Result;
import com.budwk.starter.database.service.BaseServiceImpl;
import com.budwk.app.sqfw.models.Sqfw_cloudcallback;
import com.budwk.app.sqfw.services.SqfwCloudcallbackService;
import org.apache.commons.lang3.StringUtils;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.IocBean;

import java.util.Date;

@IocBean(args = {"refer:dao"})
public class SqfwCloudcallbackServiceImpl extends BaseServiceImpl<Sqfw_cloudcallback> implements SqfwCloudcallbackService {
    public SqfwCloudcallbackServiceImpl(Dao dao) {
        super(dao);
    }

    @Override
    public String preInsertSqfwCloudCallBack(String businessType, String businessId, String requestId) {
        Sqfw_cloudcallback sqfw_cloudcallback = new Sqfw_cloudcallback();
        sqfw_cloudcallback.setBusinessId(businessId);
        sqfw_cloudcallback.setBusinessType(businessType);
        sqfw_cloudcallback.setRequestId(requestId);
        Sqfw_cloudcallback insert = insert(sqfw_cloudcallback);

        if (insert != null) return insert.getId();
        return null;
    }
}
